package com.download.web.controller;

import com.download.web.entity.BusAdvertising;
import com.download.web.entity.model.Page;
import com.download.web.entity.model.Result;
import com.download.web.service.IAdvertisingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/download/advertising")
public class BusAdvController {

    @Autowired
    private IAdvertisingService advertisingService;

    @ResponseBody
    @RequestMapping("/advList")
    public Result advertisingPage(){
        return Result.ok(advertisingService.list());
    }



}
